import { createRouter,createWebHashHistory } from "vue-router";


const routes = [{
  path: '/',
  name: 'login',
  meta: {title: '整体布局', id: 0},
  component: () => import('@/views/login.vue')
},{
  path: '/home',
  name: 'home',
  meta: {title: '整体布局', id: 0},
  component: () => import('@/views/home.vue')
},{
  // path: '/main',
  // name: 'main',
  // meta: {title: '整体布局', id: 0},
  // redirect: '/homeIndex',
  // component: () => import('@/views/main'),
  // children: [{
  //   path: '/homeIndex',
  //   name: 'homeIndex',
  //   nowPath: '/homeIndex',
  //   meta: {title: '搜索', id: 1},
  //   component: () => import('../views/pcView/ts'),
  // }]
}]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router